package com.itheima.service;


import com.itheima.dao.StudentDao;
import com.itheima.domian.Student;

import java.util.List;

public class StudentService {
    // 查询
    public List findAll(){
        StudentDao studentDao = new StudentDao();
        return studentDao.findAll();
    }

    // 删除
    public int delete(String sid){
        StudentDao studentDao = new StudentDao();
        return studentDao.delete(sid);
    }

    // 添加
    public void insert(Student stu){
        StudentDao studentDao = new StudentDao();
        studentDao.insert(stu);
    }
}
